scaleImage 
            Create a new scaled image.
Parameters
inPath 
Path of the input image
outPath 
Path of the output image
scalingRatio 
Ratio between the output image and the input image
Throws
if input file cannot be read
Scale image so that both dimensions fit inside given size.
Parameters
inPath 
Path of the input image
outPath 
Path of the output image
maxImageSize  
Max image size after resize operation
Throws
if input file cannot be read